package com.ling.module1sbbyyds.controller.community;

import com.ling.sbbyyds.interaction.param.CommunityTalkPo;
import com.ling.module1sbbyyds.service.community.CommunityTalkService;
import com.ling.sbbyyds.interaction.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 天道酬勤、学无止境
 *
 * @Description: 社区话题
 * @author: ling
 * @date: 2022年03月08日
 */
@RestController
@RequestMapping("api/communityTalk/")
public class CommunityTalkController {

    @Autowired(required = false)
    private CommunityTalkService communityTalkService;


    /**
     * http://127.0.0.1:8899/communityTalk/getCommunityTalkList?page=&limit=
     * 获取话题列表
     * @param page
     * @param limit
     * @param communityTalkPo
     * @return
     */
    @GetMapping("getCommunityTalkList")
    public ResultVo getCommunityTalkList(@RequestParam(value = "page",required = false) Integer page,
                                         @RequestParam(value = "limit",required = false) Integer limit,
                                         CommunityTalkPo communityTalkPo){
         return communityTalkService.getCommunityTalkList(page,limit,communityTalkPo);
    }




}
